package com.mzj.saas.mservice.property.service;

import com.mzj.saas.mservice.property.entity.ComplainSuggestImg;
import com.mzj.saas.mservice.property.repository.ComplainSuggestImgRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author hikari
 * @since 2021-05-13
 */
@Service
public class ComplainSuggestImgService {
	@Autowired
	private ComplainSuggestImgRepository complainSuggestImgRepository;

	public ComplainSuggestImg save(ComplainSuggestImg complainSuggestImg) {
		return complainSuggestImgRepository.save(complainSuggestImg);
	}

	public List<ComplainSuggestImg> findByComplainSuggestId(Long complainSuggestId) {
		return complainSuggestImgRepository.findByComplainSuggestId(complainSuggestId);
	}
}
